using System;
using System.Linq;
using Synapse.Framework.AoP.Attributes.Core;

namespace Synapse.Framework.AoP
{
    public class InvocationHandlerFactory : IInvocationHandlerFactory
    {
        private readonly IInterceptorBuilder interceptorBuilder;
       
        public object Create(IResolver resolver, object handler, Type type)
        {
            return new InvocationHandler(handler, type, new InterceptorBuilder(resolver) );
        }
    }
}